#include "Porte.h"

using namespace std;

Porte::Porte()
{
	cout<<"Ceci est une Porte"<<endl;
	m_dessinConsole = "+";
}


string Porte::getDessin()
{
	return m_dessinConsole;
}

std::string Porte::getActionPossible()
{
	if(m_bloquant == true)
		return "interagir/143.Ouvrir interagir/144.Crocheter";
	else
		return "interagir/145.fermer";
}

void Porte::ouvrir()
{
	m_dessinConsole = ".";
	m_bloquant = false;
}

void Porte::fermer()
{
	m_dessinConsole = "+";
	m_bloquant = true;
}

bool Porte::getVisible()
{
	return m_visible;
}
	
void Porte::setVisible(bool visible)
{
	m_visible = visible;
	if(visible)
		m_dessinConsole = "+";
	else
		m_dessinConsole = " "; //peux etre probleme avec action speciale
}
